<?php
// +----------------------------------------------------------------------
// | ZBPHP[基于ThinkPHP5.1开发]
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2019 http://www.lwwan.com
// +----------------------------------------------------------------------
// | Author 似水星辰 [ 2630481389@qq.com ]
// +----------------------------------------------------------------------
// | 河南犇犇网络科技有限公司
// +----------------------------------------------------------------------

namespace app\user\validate;


class Finance extends \think\Validate
{
    //验证规则
    protected $rule = [
      'user_id' => 'require',
      'money' => 'require|float',
      'remark' => 'require'
    ];

    //验证提示
    protected $message = [
        'user_id.require' => '请选择会员',
        'money.require' => '请输入金额',
        'money.float' => '金额应为浮点数',
        'remark.require' => '请输入充值理由'
    ];
}